LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := zlib

LOCAL_SRC_FILES := ../../ZUI/thirdParty/zlib/adler32.c ../../ZUI/thirdParty/zlib/compress.c ../../ZUI/thirdParty/zlib/crc32.c ../../ZUI/thirdParty/zlib/deflate.c ../../ZUI/thirdParty/zlib/gzclose.c ../../ZUI/thirdParty/zlib/gzlib.c ../../ZUI/thirdParty/zlib/gzread.c ../../ZUI/thirdParty/zlib/gzwrite.c ../../ZUI/thirdParty/zlib/infback.c ../../ZUI/thirdParty/zlib/inffast.c ../../ZUI/thirdParty/zlib/inflate.c ../../ZUI/thirdParty/zlib/inftrees.c ../../ZUI/thirdParty/zlib/trees.c ../../ZUI/thirdParty/zlib/uncompr.c ../../ZUI/thirdParty/zlib/zutil.c

ifeq ($(PM5_CONFIG),debug)
  LOCAL_C_INCLUDES := 
  LOCAL_CPP_FEATURES := exceptions
  LOCAL_CFLAGS := -D__ANDROID__ -DDEBUG -D_DEBUG -D_CRTDBG_MAP_ALLOC -DSDL_STATICLIB
  include $(BUILD_STATIC_LIBRARY)
endif

ifeq ($(PM5_CONFIG),release)
  LOCAL_C_INCLUDES := 
  LOCAL_CPP_FEATURES := exceptions
  LOCAL_CFLAGS := -D__ANDROID__ -DNDEBUG -DSDL_STATICLIB
  include $(BUILD_STATIC_LIBRARY)
endif